FROM node

COPY . /koa
WORKDIR /koa

RUN rm package-lock.json
RUN npm install --registry=https://registry.npm.taobao.org
RUN npm install pm2 -g --registry=https://registry.npm.taobao.org

EXPOSE 3000

CMD npm run dev